package com.horay.springbootdemo.web.servlet.common.enums;

/**
 * 操作处理结果状态
 *
 * @author heyingcheng
 * @date 2019/8/31 9:01
 */
public enum ResultState {

    /** 操作处理成功 */
    Success(0, "操作处理成功"),
    /** 操作处理失败 */
    Failure(2, "操作处理失败"),
    /** 操作重试 */
    Retry(1, "重试处理"),
    /** 操作执行中 */
    Executing(0, "处理中"),
    ;

    public final int code;
    public final String comment;

    ResultState(int code, String comment) {
        this.code = code;
        this.comment = comment;
    }

}